from django.db import models
from utils.BaseModel import BaseModel

# Create your models here.

class Nav(BaseModel):
    name = models.CharField(max_length=100, verbose_name='导航名称', unique=True)
    url = models.CharField(max_length=255, verbose_name='导航地址', null=True, blank=True)
    postion = models.IntegerField(default=0, verbose_name='导航位置')
    ishttp = models.BooleanField(default=False, verbose_name='是否是http链接')

    class Meta:
        db_table = 'fgnav'
        verbose_name = '导航'